#!/bin/bash
redispath="/data/home/wf/redis/"
gdbpath="/data/home/xiaoq/dataset/gdb-gz/"
glibcpath="/data/home/xiaoq/dataset/glibc_restore/"
gccpath="/data/home/xiaoq/dataset/gcc-gz/"
vmapath="/data/home/xiaoq/dataset/vma/vma_tar/"
linuxpath="/data/home/xiaoq/dataset/linux/"
smalllinuxpath="/data/home/xiaoq/dataset/linux/smalllinux/"
rdbpath="/data/home/xiaoq/dataset/RDB_restore/smallrdb/"
vmdkpath="/data/home/xiaoq/dataset/vmdk-1-restore/smallvmdk/"
benchpath="/data/home/xiaoq/dataset/bench/"


echo "Begin Finesse and LAFM with different match length"
echo "match length 0"

path=$gccpath
for file in $(ls $path);do
    ./destor $path/$file -p"sketch-method sisd_fixed_rabin" -p"enable-match-adjacent yes" -p"adjchunk_match_length 0" -p"thread-pool yes"
done
./destor -s
./rebuild

echo "End Finesse and LAFM with different match length"
